#{extends 'main.html' /} #{set title:'Contact' /}


<div class="row-fluid">
	<div class="span9 offset1">
		<div class="hero-unit">
			#{if flash?.error}
			<div class="error">
				<p style="color: #c00">${flash.error}</p>
			</div>
			#{/if} #{if flash?.success}
			<div class="success">
				<p style="color: #5fa022">${flash.success}</p>
			</div>
			#{/if}
			<h2 id="title">Contact us:</h2>
			<form id="Contact" action=@{Application.sendMessageContact} method="POST"
				accept-charset="${_response_encoding}">
				
			    <p>
					<label>Name:</label> <input type="text" name="name"
						value="${flash.name}" id="name" />
				</p>
				
				<p>
					<label>E-mail address:</label> <input type="text" name="email"
						value="${flash.email}" id="email" />
				</p>	
				
				<p>
					<label>Message:</label> 
					
				<textarea name="message" rows="3" cols="40" id="message"></textarea>
				 				
				</p>		
				
				<p class="buttons">
					<input type="submit" value="Send email" id="ContactButton"
						class="btn btn-primary btn-large"/>
				</p>
			</form>
			#{if flash.notconfirmed}
			<p>
				<a class="action"
					href="@{Application.sendMessageContact()}">Contact us</a>
			</p>
			#{/if}
		</div>
	</div>
</div>
